package face.pay.task.terminal;

import face.pay.task.terminal.service.IUserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Classname MchAgencyRelation
 * @Description JJL
 * @Date 2019/10/18 16:05
 */
@Component
public class MchAgencyRelationTask {

    @Autowired
    private IUserRelationService userRelationCheck;

    /**
     * 商家与代理商关系表定时更新
     */
    @Scheduled(cron = "0 0 0/1 * * ?")
    @Async
    public void userRelationCheck(){
        userRelationCheck.userRelationCheck();
    }

}
